package com.ruoyi.qywx.mapper;

import com.ruoyi.common.core.basic.BasicMapper;
import com.ruoyi.qywx.entity.ContactEntity;
import com.ruoyi.qywx.entity.Dept;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author : hcl
 * @Date : 2023/8/10 14:23
 */
@Mapper
public interface ContactMapper extends BasicMapper<ContactEntity> {
    /**
     * @param parentId 获取当前部门下的子部门，null时，获取所有部门数据
     */
    List<Dept> selectTeamDept(@Param("parentId") Long parentId,@Param("teamId") Long teamId);
}
